Automattic\WCShipping\LabelPurchase\LabelPurchaseService A

Total Complexity 58
Dependencies 8
Dependents 7
Total lines 592
Lines of code 324
Logical lines of code 141
Comment lines 170
Methods 14
Properties 4

Methods 14

Method Rating Maintainability Complexity Lines of code
purchase_labels()
A
34 8 103
prepare_packages_for_purchase()
A
50 13 28
get_labels_meta_from_response()
A
39 9 68
build_shipment_from_order_items()
A
44 8 41
refund_label()
S
55 5 19
get_labels()
S
57 2 18
update_user_meta()
S
66 3 8
store_selected_meta()
S
63 3 10
get_shipments()
S
65 2 9
__construct()
S
71 1 6
get_status()
S
80 1 3
update_order_label()
S
79 1 3
get_shipments_destinations()
S
75 1 4
get_shipments_origins()
S
75 1 4